<?php 
$prefix =  config('database.connections.mysql.prefix');

$sql    = dirname(__FILE__) .'/Install.sql';
$result =  @file_get_contents($sql); 
//替换前缀
$result = str_replace('{$prefix}',$prefix,$result); 


$_sql=    $result;
